I have a script that reads logs. It can connect to Pagerduty via API call( or through Prometheus alertmanager or any other service that you recommend).
I need to assign the person on the log as a responder in PagerDuty. This has to be done via code and not UI.
What should i use at the PagerDuty end to achieve this? An API call? Custom Event Transformer? etc.